# Keyboard button

**URL:** <https://forums.imgtec.com/t/keyboard-button/2059>\
**Category:** PowerVR Insider\
**Created:** [April 29, 2014, 9:03pm UTC](https://forums.imgtec.com/t/keyboard-button/2059 "2014-04-29T21:03:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aicha11](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@aicha11](https://forums.imgtec.com/u/aicha11)\
**Post date:** [April 29, 2014, 9:03pm UTC](https://forums.imgtec.com/t/keyboard-button/2059/1 "2014-04-29T21:03:18Z")

</div>

what is the keyboard button that matches the PVRShellKeyNameACTION1?

---

<div class="post-metadata">

**Author:** ![dgu](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@dgu](https://forums.imgtec.com/u/dgu)\
**Post date:** [April 30, 2014, 3:04pm UTC](https://forums.imgtec.com/t/keyboard-button/2059/2 "2014-04-30T15:04:30Z")

</div>

left --\>PVRShellKeyNameACTION1  
  
right --\>PVRShellKeyNameACTION2  
  
`if (m_vec2PointerLocationEnd[0] <= 0.3f) // Left half of the screen
KeyPressed(PVRShellKeyNameACTION1);
else if (m_vec2PointerLocationEnd[0] >= 0.7f) // Right half of the screen
KeyPressed(PVRShellKeyNameACTION2);`  
  
  
  
you can do as well  
  
if (PVRShellIsKeyPressed(PVRShellKeyNameLEFT)) {  
  
}
