Fixed the getKeys() function so it returns recently pressed keys, long pressed keys and also has repeat after long-press functionality