# Help with keyboard press

**URL:** https://forum.kirupa.com/t/help-with-keyboard-press/196721
**Category:** programming
**Created:** [August 10, 2006, 3:05pm UTC](https://forum.kirupa.com/t/help-with-keyboard-press/196721 "2006-08-10T15:05:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![keke](https://avatars.discourse-cdn.com/v4/letter/k/c5a1d2/32.png) [@keke](https://forum.kirupa.com/u/keke)
#### Post date: [August 10, 2006, 3:05pm UTC](https://forum.kirupa.com/t/help-with-keyboard-press/196721/1 "2006-08-10T15:05:34Z")

</div>

This is stupid of me to ask but how do i make it so that when i push a letter on the keyboard it goes to the next frame? In this case my first letter is K.  
I thought maybe i had to use some sort of code but then i got all confused then my code changed lots and now its just 2 lines and doesn’t work.  
If anyone could help me i’d really appreciate it.

```auto
on (keyPress(Key.getCode(75)))
{
gotoAndStop (2);}

```

_waits to be told how stupid and n00by i am_
