add functionality for shift-tab too