add key press event
add return  state
preview interface