added option for key press get time