Fixed a bug with keybinding detection