discriminate between keypress for input field and normal

discriminate between keypress meant for input fields and normal.
ignoring the former ones. solved problem of shift+i while writing