Special keys in E-Prime (2025)

Special keys in E-Prime (1)

E-Prime allows to use so-called special keys to define allowable and correct responses in E-Objects. Did you know that you can use almost all keys on your keyboard? Information about special keys is quite difficult to find, because it is hidden in E-Prime's help file. We hope that publishing this blog will help to find it quickly on the internet too.

If you look for {KEY} in the E-Basic Help (not to be confused with the E-Studio help, see the Help menu) you will get an overview of all possible keys. Please find a copy of this {KEY} entry below.

{KEY}

E-Prime provides a nomenclature for defining special keys as the allowable and correct input. Just as the attribute reference nomenclature uses brackets wrapped around a value (such as [CorrectAnswer]) to inform E-Studio that the value represents an attribute reference to be looked up in the context, the {KEY} nomenclature uses the curly braces (the { and } characters) to signify a special input. The {KEY} nomenclature may identify an individual key (for example, the Shift key) or a group of keys or inputs (for example, all of the numeric keys) . Some of the input specified with the {KEY} nomenclature are specific to an individual device while a few are shared amongst all devices.

Individual

Some of the {KEY} settings are used to specify an individual key or input. For example, {SPACE} specifies the space bar. Keys that do not have an easy to read or printable ASCII equivalent, such as function keys, are specified using the {KEY} nomenclature as well. (e.g., {F1}).

Groups

Some of the {KEY} settings are used to specify a group or range of inputs. For example, specifying {ALPHA} lets E-Prime know that all alphabetic keys should be used, while specifying {NUMBER} lets E-Prime know that only 0-9 should be used. Groups may be only be specified as allowable input; correct input must be specified as an Individual key or input.

{ANY}

E-Prime recognizes {ANY} to mean any press that the device supports. (The curly braces are required to differentiate any press supported by the device from the individual keys "a", "n", and "y", which is specified as "any") All input mask objects support the {ANY} grouping.

Press/Release

E-Prime provides the ability to have an input mask look for presses, releases, or both presses and releases. By default, each device is configured to handle processing of input presses. Enabling a device to handle releases requires a change to the CollectionMode and a modification of the {KEY} nomenclature. First, you can change the CollectionMode property to handle presses, releases or both by editing the Experiment object. Second, to specify a release in an input mask via the Duration/Input property page, add a "-" character after the opening curly brace. For example, if you wanted the input to be accepted when the user presses the space bar, you would specify {SPACE}. However, if you want the release of the space bar, you would specify {-SPACE}. For alphanumeric characters not requiring the {KEY} nomenclature, specify the actual key to accept a key press (e.g., 1 and not {1}), but use the curly braces and negative sign to accept a key release (e.g. {-1}).

RESP

When a special key is processed, it is added to the RESP property of the object in its {KEY} nomenclature. For example, if the end user typed "c a t", the RESP property value would be "c{SPACE}a{SPACE}t".

Device Specific

Each device supports its own use of the {KEY} nomenclature. Most devices do not have many entries. The exception is the keyboard for the obvious reason that it has so many possible entries. The tables (original images are now in text format, thanks to http://www.onlineocr.net/ and a bit of manual edits) below show the available entries for each object that supports accepting responses*.

Keyboard (group)

{ALPHA}, {-ALPHA}
{ANY}, {-ANY}
{NUMBER}, {-NUMBER}

Keyboard (individual)

the numbers 0 through 9

the numbers {-0} through {-9}

the letters A through W, a through w

the letters {-A} through {-Z}, a through any of the following

{F1}

{F2}
{F3}
{F4}
{F5}
{F6}
{F7}
{F8}
{F9}
{F10}
{F11}
{F12}
{F13}
{F14}
{F15}

{!}
{@}
{#}
{$}
{%}
{^}
{&}
{*}
{(}
{)}
{_}
{+}
{:}
{~}
{|}
{<}
{>}
{?}
{-}
{=}
{;}
{'}
{`}
{,}
{.}
{/}

{-F1}
{-F2}
{-F3}
{-F4}
{-F5}
{-F6}
{-F7}
{-F8}
{-F9}
{-F10}
{-F11}
{-F12}

{-F13}

{-F14}
{-F15}

{-!}
{-@}
{-#}
{-$}
{-%}
{-^}
{-&}
{-*}
{-(}
{-)}
{-_}
{-+}
{-:}
{-~}
{-|}
{-<}
{->}
{-?}
{--}
{-=}
{-;}
{-'}
{-`}
{-,}
{-.}
{-/}

Keyboard (individual)

{ALT}
{BACKSLASH}
{BACKSPACE}
{CAPSLOCK}
{CONTROL}
{DELETE}
{DOWNARROW}
{END}
{ENTER}
{ESCAPE}
{HOME}
{INSERT}
{LEFTARROW}
{LEFTBRACE}
{LEFTBRACKET}
{NUMLOCK}
{NUMPAD5}
{PGDN}
{PGUP}
{QUOTE}
{RIGHTARROW}
{RIGHTBRACE}
{RIGHTBRACKET}
{SCROLLLOCK}
{SHIFT}
{SPACE}
{TAB}
{UPARROW}
{-ALT}
{-BACKSLASH}
{-BACKSPACE}
{-CAPSLOCK}
{CONTROL}
{-DELETE}
{-DOWNARROW}
{-END}
{-ENTER}
{-ESCAPE}
{-HOME}
{-INSERT}
{-LEFTARROW}
{-LEFTBRACE}
{-LEFTBRACKET}
{-NUMLOCK}
{-NUMPAD5}
{-PGDN}
{-PGUP}
{-QUOTE}
{-RIGHTARROW}
{-RIGHTBRACE}
{-RIGHTBRACKET}
{-SCROLLLOCK}
{-SHIFT}
{-SPACE}
{-TAB}
{-UPARROW}

Mouse (group)

{ANY}, {-ANY}

Mouse (individual)

the numbers 1 through 8
the numbers {-1} through {-8}
the letters A through W
the letters {-A} through {-W}

Port (group)

{ANY}, {-ANY}
the numbers 0 through 9
the numbers {-0} through {-9}
the letters A through W

the letters {-A} through {-W}

SRBox (group)

{ANY}, {-ANY}

SRBox (individual)

the numbers 0 through 9
the numbers {-0} through {-9}
A
{-A}
{ANY}, {-ANY}

* The {KEY} mappings for Group are only permitted in the Allowable property. The {KEY} mappings for Individual are permitted in either the Allowable or Correct property.

Special keys in E-Prime (2025)
Top Articles
Latest Posts
Recommended Articles
Article information

Author: Saturnina Altenwerth DVM

Last Updated:

Views: 5814

Rating: 4.3 / 5 (44 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Saturnina Altenwerth DVM

Birthday: 1992-08-21

Address: Apt. 237 662 Haag Mills, East Verenaport, MO 57071-5493

Phone: +331850833384

Job: District Real-Estate Architect

Hobby: Skateboarding, Taxidermy, Air sports, Painting, Knife making, Letterboxing, Inline skating

Introduction: My name is Saturnina Altenwerth DVM, I am a witty, perfect, combative, beautiful, determined, fancy, determined person who loves writing and wants to share my knowledge and understanding with you.