Key-based cursor note movement and pitch2tpc()

Replace pitch2tpc2() and both variants of pitch2tpc() with a single
generic pitch2tpc(). Add PREFER_SHARPS, PREFER_NEAREST and PREFER_FLATS.
Update all places where those functions are called from.
Use intelligent key-aware stepping of pitch and tpc in Score::upDown().