how do i know what key was pressed