Fixed a bug that was preventing modifier keys from being detected