added support for tab and backtab keys