RichardH : keydown method for webAPI