[Issue #336] added keypress handlers to restrict Tab/focus