fix keydown space handling, broken in previous commit