I need to represent calculator key presses by the text for the keys to press surrounded by a box. I tried to get away with just the bare key presses (no box) but I got marked down for it because it would appear my assessor is a bit of a pedant.
Anyway, a bit of research turned up the likes of \boxit and \fbox.
I gave them both a go but \boxit produces nigh on identical results to \fbox. The problem is that the height and baseline of the box varies with the glyphs it contains.
Take the following example that represents pressing 5, multiply, x;
\documentclass{article}
\usepackage{fullpage}
\begin{document}
\fbox{5} \fbox{$\times$} \fbox{$x$}
\end{document}
This generates boxes around the content but they're on different baselines and they're all different heights.
Given what I've seen of LaTeX thus far I'd say this is definitely possible but CTAN, news groups and google have turned up nothing useful thus far.
Any hints?