event.getKeys issues

White space is very important when reading Python code, so: