Merged GetButtonUp / GetButtonDown implementation into latest version.