Checks if a series of keypress events matches a key binding sequence either partially or exactly.