reduce teasing length and restrict keyboard events to SPACE and ENTER