Keyboard issue

hello everyone i have two question

  1. the fist one is someone know how to fix this issue

  1. How can I redirect to the first page by inactivity after two minutes if the user has not touched any input is returned to the first page