Test mode to open/close by key press