# Create special cell by typing a certain character

When I type *, with the input cursor at the very beginning of a cell, it creates a cell with the "Item" style.

Is this feature extensible? Can I define my own special characters which trigger the creation of a special cell? For example, can we make ' create a "Code" style cell?

• @andre Yes, that's it! – Szabolcs Jan 27 '18 at 19:51
• related: 18406 – Kuba Jan 27 '18 at 21:39
• @Kuba I guess ... but neither of those two are true duplicates in the sense that they're not easy to find ... of course the answers resolve all my problem, especially Carl's. – Szabolcs Jan 27 '18 at 21:47
• @Kuba I would prefer a one-line answer mentioning StyleKeyMapping and linking to Carl's description. – Szabolcs Jan 27 '18 at 21:48

StyleKeyMapping does exactly what you need.