Add thread sleep, do not return the ERR state from getKeysPressed