keypress data structure