<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://smartbox.benryves.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=INKEY</id>
	<title>INKEY - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://smartbox.benryves.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=INKEY"/>
	<link rel="alternate" type="text/html" href="https://smartbox.benryves.com/mediawiki/index.php?title=INKEY&amp;action=history"/>
	<updated>2026-11-15T04:23:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://smartbox.benryves.com/mediawiki/index.php?title=INKEY&amp;diff=52&amp;oldid=prev</id>
		<title>Benryves: Created page with &quot;= INKEY, INKEY$ =  == Syntax ==  INKEY($)  == Description ==  These functions return the value of any key which is pressed down when the INKEY function is used, or has been pressed since the previous INKEY/INKEY$. The key is returned as either its ASCII value (INKEY) or its character (INKEY$). INKEY returns -1 if no key is pressed. The ASCII value is the numeric value associated with each key by the computer. INKEY$ returns a blank string if no key has been pressed.  '''...&quot;</title>
		<link rel="alternate" type="text/html" href="https://smartbox.benryves.com/mediawiki/index.php?title=INKEY&amp;diff=52&amp;oldid=prev"/>
		<updated>2023-10-06T19:20:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= INKEY, INKEY$ =  == Syntax ==  INKEY($)  == Description ==  These functions return the value of any key which is pressed down when the INKEY function is used, or has been pressed since the previous INKEY/INKEY$. The key is returned as either its ASCII value (INKEY) or its character (INKEY$). INKEY returns -1 if no key is pressed. The ASCII value is the numeric value associated with each key by the computer. INKEY$ returns a blank string if no key has been pressed.  &amp;#039;&amp;#039;&amp;#039;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= INKEY, INKEY$ =&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
INKEY($)&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
These functions return the value of any key which is pressed down when the INKEY function is used, or has been pressed since the previous INKEY/INKEY$.&lt;br /&gt;
The key is returned as either its ASCII value (INKEY) or its character (INKEY$).&lt;br /&gt;
INKEY returns -1 if no key is pressed.&lt;br /&gt;
The ASCII value is the numeric value associated with each key by the computer.&lt;br /&gt;
INKEY$ returns a blank string if no key has been pressed.&lt;br /&gt;
&lt;br /&gt;
'''Note''' ''The function only works when the cursor is in the text window.''&lt;br /&gt;
''Click the cursor in the text window before pressing a key.''&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
Print SENSOR A until the space-bar is pressed&lt;br /&gt;
&lt;br /&gt;
 REPEAT&lt;br /&gt;
 PRINT SENSOR A&lt;br /&gt;
 UNTIL INKEY = 32&lt;br /&gt;
&lt;br /&gt;
Move a buggy forward when the ‘F’ key is pressed&lt;br /&gt;
&lt;br /&gt;
 REPEAT&lt;br /&gt;
 IF INKEY$ = &amp;quot;F&amp;quot; THEN FORWARD A ELSE HALT A&lt;br /&gt;
 FOREVER&lt;br /&gt;
&lt;br /&gt;
== Associated keywords ==&lt;br /&gt;
&lt;br /&gt;
* [[GET]]&lt;br /&gt;
* [[GET|GET$]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Reference]]&lt;br /&gt;
[[Category:Procedure]]&lt;/div&gt;</summary>
		<author><name>Benryves</name></author>
	</entry>
</feed>