using keyPressed and keyReleased again since they work
the cursor moves over appropriately for multiple sequential spaces