added keyboard events to gallery and esc shortcut for home.