Improve keyboard support

issue #3964
- added :focus selector to improve keyboard support in modern browsers
- added :active selector to improve keyboard support in old IE
Merge pull request #3995 from JamieKnight/keyboard-support

Improve keyboard support