Added ability for transitions from key and mouse events