Added tests for different ranges re. generated keyboard events.