added keyboard control for web interface