Use set instead of map for keysPressed