Reorder function key codes before special keys.
	Function keys are the common ones, so should get the simplest numbers.
	The next release breaks the API anyway, so may as well get this over now.
Make Visibility an enum class instead of namespace.