Get caller key pressed

hi
how can I write a Dialplan to get caller key pressed and store it in a variable?

everything you’d ever want to know about asterisk and dialplans.
http://www.asteriskdocs.org/ Click on the book.