<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3AKey_Codes</id>
	<title>TI-BASIC:Key Codes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3AKey_Codes"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Key_Codes&amp;action=history"/>
	<updated>2026-05-28T06:50:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:Key_Codes&amp;diff=845&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Key_Codes&amp;diff=845&amp;oldid=prev"/>
		<updated>2016-02-24T18:21:33Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div style=&amp;quot;float: right;&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Getkey.png]]&lt;br /&gt;
[[File:Xlib-keys.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;width: auto; margin-right:260px;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The picture to the right top contains the value returned by [[TI-BASIC:Getkey|GetKey]] for each keypress. The picture is organized so that the key codes are placed where they would be on the literal calculator. You should note that the [ON] key (the key in the bottom left corner) has no key code, so you cannot check for nor disable it.&lt;br /&gt;
&lt;br /&gt;
If you look at the key codes, you will probably notice that they actually follow a pattern: a key is represented by putting its row and column together. For example, the [ENTER] key is row 10, column 5; therefore, its value is 105. The up, right, and left arrow keys are assumed to be in the second row, and the down arrow key is in the 3rd row.&lt;br /&gt;
&lt;br /&gt;
In case you want to know the key codes while using your calculator, here is a simple program to use:&lt;br /&gt;
&lt;br /&gt;
 :Repeat Ans=105&lt;br /&gt;
 :getKey&lt;br /&gt;
 :If Ans:Disp Ans&lt;br /&gt;
 :End&lt;br /&gt;
&lt;br /&gt;
The picture to the right bottom contains the value returned by the real(8 command when using [[TI-BASIC:Xlib|Xlib]]. The key placement is somewhat disorganized, but consistent for the most part. The [ON] key will return a value, according to the tutorial, but due to the [ON] break inherent to TI-Basic, it will not be returned.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|12&lt;br /&gt;
|13&lt;br /&gt;
|14&lt;br /&gt;
|&lt;br /&gt;
|15&lt;br /&gt;
&lt;br /&gt;
|- &amp;lt;!-- colspan and rowspan aren&amp;#039;t supported yet, so I used the image --&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|25&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|21&lt;br /&gt;
|22&lt;br /&gt;
|23&lt;br /&gt;
|24&lt;br /&gt;
|&lt;br /&gt;
|26&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|31&lt;br /&gt;
|32&lt;br /&gt;
|33&lt;br /&gt;
|&lt;br /&gt;
|34&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|41&lt;br /&gt;
|42&lt;br /&gt;
|43&lt;br /&gt;
|44&lt;br /&gt;
|45&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|51&lt;br /&gt;
|52&lt;br /&gt;
|53&lt;br /&gt;
|54&lt;br /&gt;
|55&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|61&lt;br /&gt;
|62&lt;br /&gt;
|63&lt;br /&gt;
|64&lt;br /&gt;
|65&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|71&lt;br /&gt;
|72&lt;br /&gt;
|73&lt;br /&gt;
|74&lt;br /&gt;
|75&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|81&lt;br /&gt;
|82&lt;br /&gt;
|83&lt;br /&gt;
|84&lt;br /&gt;
|85&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|91&lt;br /&gt;
|92&lt;br /&gt;
|93&lt;br /&gt;
|94&lt;br /&gt;
|95&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|102&lt;br /&gt;
|103&lt;br /&gt;
|104&lt;br /&gt;
|105&lt;br /&gt;
&lt;br /&gt;
|}[[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>